
* {
    margin: 0;
    padding: 0;
    border-radius: 10px;
}

.container {
    width: 1000px;
    margin: 0 auto;
}

#header-wrapper {
    width: 1000px;
    margin: 0 auto;
}

/*内容格式定义*/
#content-wrapper article {
    width: 620px;
    display: inline-block;
    vertical-align: top;
    margin-right: 10px;
}

#content-wrapper aside {
    width: 370px;
    display: inline-block;
    vertical-align: top;
    margin-top: 0;
}

/*面包屑导航*/
.crumb-nav {
    font-size: 1.4em;
    margin: 5px 0;
}

.crumb-nav a {
    text-decoration: none;
    color: #000;
    font-size: 1em;
}

.crumb-nav a:hover, .crumb-nav a:visited {
    color: #d78849;
}

/*左边内容区最近新书和最近促销内容水平呈现*/
.article-section section {
    width: 290px;
    display: inline-block;
    vertical-align: top;
    text-align: center;
    margin: 10px 0 10px 10px;
}

/*右边区图书分类和合作伙伴内容水平呈现*/
.aside-section {
    width: 170px;
    display: inline-block;
    vertical-align: top;
    margin-right: 5px;
}

.article-section section h3 {
    margin: 5px 0 10px 0;
}

/*定义最近新书和最近促销下边框虚线，为一像素灰色虚线*/
.article-section {
    border-bottom: #CCC dashed 1px;
    margin-bottom: 10px;
}

/*本周推荐*/

/*推荐栏*/
.newbie img {
    display: inline-block;
    alignment: center;
    width: 600px;
    height: auto;
    margin-bottom: 10px;
}

.newbie .newbie-content {
    display: inline-block;
    width: 630px;
    vertical-align: top;
    box-sizing: border-box;
    padding-right: 20px;
}

.newbie h3 {
    text-align: center;
    padding-bottom: 10px;
    padding-top: 10px;
}

.newbie {
    position: relative;
    border-bottom: #CCC dashed 1px;
    text-align: center;
    width: 630px;
    transition: height 0.3s linear;
}

.inside {
    position: relative;
}

/*动画效果*/
@-webkit-keyframes fadeIn {
    0% {
        opacity: 0; /*初始状态 透明度为0*/
    }
    10% {
        opacity: .1;
    }
    20% {
        opacity: .2;
    }
    30% {
        opacity: .3;
    }
    40% {
        opacity: .4;
    }
    50% {
        opacity: .5;
    }
    60% {
        opacity: .6;
    }
    70% {
        opacity: .7;
    }
    80% {
        opacity: .8;
    }
    90% {
        opacity: .9;
    }
    100% {
        opacity: 1; /*结尾状态 透明度为1*/
    }
}

/*动画效果*/
@-webkit-keyframes fadeOut {
    from {
        height: 120px;
    }
    to {
        height: 0;
    }
}

#inside1 {
    position: relative;
    transition: all 0.3s linear;
    /*border: black 1px solid;*/
    /*border-top-left-radius: 0;*/
    /*border-top-width: 315px;*/
}

#inside2 {
    position: absolute;
    transition: all 0.3s linear;
    /*border: black 1px solid;*/
}

.inside-show {
    visibility: visible;
    opacity: 100;
    top: 0;
    left: 0;
}

.inside-hide {
    visibility: hidden;
    opacity: 0;
    top: 30px;
    left: 0;
}

#newbie-title1, #newbie-title2 {
    width: 290px;
    display: inline-block;
}

.title-show {
    border: black 1px solid;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: white;
}

.title-hide {
    border: none;
}

#newbie-title1:hover {
    /*background-color: lightgray;*/
    border: black 1.0px solid;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: white;
    cursor: pointer;
}

#newbie-title2:hover {
    /*background-color: lightgray;*/
    border: black 1.0px solid;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: white;
    cursor: pointer;
}

.newbie .addfavor {
    width: 98%;
    text-align: right;
    margin-bottom: 10px;
}

.newbie img {
    opacity: 0.8;
}

.newbie img:hover {
    opacity: 1;
}

/*关于书店*/
.about {
    text-align: center;
}

.about img {
    display: inline-block;
    width: 120px;
    box-sizing: border-box;
    padding: 10px 10px;
}

.about p {
    display: inline-block;
    width: 370px;
    vertical-align: top;
    box-sizing: border-box;
    padding-bottom: 10px;
}

.about h2 {
    margin-bottom: 10px;
}


/*文本*/
body {
    font: 62.5%/1.4 "微软雅黑", Verdana, Arial, Helvetica, sans-serif;
}

h2 {
    font-size: 2.4em;
}

h3, h4, h5, h6 {
    font-size: 2.0em;
}

h2, h3, h4, h5, h6 {
    font-family: 幼圆, serif;
    font-weight: 100000;
}

p, a, span {
    font-size: 1.4em;
}

h2[class$="title"] { /*class中以title结尾*/
    /*color: white;*/
    /*background-color: black;*/
    margin-top: 5px;
    padding-bottom: 5px;
    /*background-image: url(../images/bullet.png);*/
    background-repeat: no-repeat;
    padding-left: 30px;
    border-bottom: 1px solid black;
}

.title1 {
    background-position: 0 -3px;
}

.title2 {
    background-position: 0 -38px;
}

.title3 {
    background-position: 0 -68px;
}

.title4 {
    background-position: 0 -98px;
}

.title5 {
    background-position: 0 -128px;
}

.title6 {
    background-position: 0 -155px;
}

.title7 {
    background-position: 0 -182px;
}

/*各元素设置*/
p {
    text-indent: 2em; /*段落首行缩进*/
    text-align: justify;
    font-size: 14px;
    line-height: 25px;
}

ul {
    list-style-type: none;
}

img {
    border: none;
}

mark {
    background-color: #e3b503;
    color: #FFFFFF;
}


/*页眉*/
header {
    background-image: url(../images/header.jpg);
    height: 150px;
    position: relative;
}

/*页眉logo*/
#logo {
    position: absolute;
    top: 15px;
    left: 70px;
    font-size: 80%;
    /*-webkit-text-stroke: 0.5px black;*/
    text-shadow: 1.5px 1.5px 0.0px black;
}

#logo a { /*设置超链接文字格式*/
    font-size: 2.8em;
    color: white;
    text-decoration: none;
}

#logo a h1 {
    font-weight: normal;
}

#logo a h1:first-letter { /*设置首个字变大*/
    font-size: 140%;
}

/*导航菜单*/
#nav {
    background-color: black;
/ / background-image: url(../images/navbg.jpg);
    height: 54px;
}

/*页脚*/
#footer-wrapper {
/ / background-image: url(../images/navbg.jpg);
    background-color: black;
    margin: 0 auto;
    width: 1000px;
    height: 60px;
    position: relative;
    top: 10px;
}

footer section {
    float: right;
}

#copyright {
    color: #000000;
    text-align: center;
    font-size: 1.6em;
    margin: 30px auto;
}

#copyright a {
    font-size: 16px
}

/*促销*/
.promotion {
    border: #CCC solid 1px;
    width: 100px;
    /*background-image: url(../images/promo-icon.gif);*/
    background-repeat: no-repeat;
    background-position: top right;
    padding: 25px;
    margin: 10px;
}

/*分隔*/
.border {
    text-align: center;
    margin: 10px 0;
}

.border img {
    width: 43px;
}

/*边栏广告*/
section#advert a {
    display: block;
}

section#advert img {
    width: 370px;
}

section#advert {
    margin: 10px 0;
}

/*购物车*/
#nav nav {
    position: relative;
}

#menu-logo {
    position: absolute;
    right: 0;
    top: 7px;
}

#menu-logo a {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-size: 1.8em;
    line-height: 40px;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
    background-position: 10px 12px;
    transition: background-color 0.3s linear;
}

#menu-logo a:hover {
    color: black;
    background-color: #f3f3f3;
}

/*search*/
#search {
    position: absolute;
    top: 13px;
    left: 740px;
    text-align: right;
}

#search input[type="search"] {
    font-family: "微软雅黑", serif;
    background: #f3f3f3;
    border: solid 1px #ccc;
    height: 30px;
    line-height: 30px;
    width: 200px;
    font-size: 1.6em;
    padding-left: 5px;
    display: inline-block;
    vertical-align: top;
}

#search input[type="submit"] {
    font-family: "微软雅黑", serif;
    background-color: #b4b4b4;
    color: #fff;
    border: solid 1px #b4b4b4;
    height: 30px;
    display: inline-block;
    font-size: 1.6em;
    vertical-align: top;
    padding: 0 10px;
}

#search input[type="submit"]:hover {
    cursor: pointer;
}

/*本周推荐、最近促销、加入购物车、详细内容超链接*/
.favor {
    text-decoration: none;
    color: black;
    /*background: #FF0000;*/
    line-height: 25px;
    display: inline-block;
    text-align: center;
    width: 80px;
    opacity: 0.7;
}

.favor:hover {
    text-decoration: none;
    background: darkgray;
    color: #FFFFFF;
    line-height: 25px;
    display: inline-block;
    text-align: center;
    width: 80px;
    opacity: 0.7;
}

.learn {
    text-decoration: none;
    background: black;
    color: white;
    line-height: 25px;
    display: inline-block;
    text-align: center;
    width: 80px;
    opacity: 0.7;
}

.learn:hover {
    text-decoration: none;
    background: darkgray;
    color: #FFFFFF;
    line-height: 25px;
    display: inline-block;
    text-align: center;
    width: 80px;
    opacity: 0.7;
}


/*图书分类和合作伙伴超链接*/
.aside-section li a {
    text-decoration: none;
    color: #000;
}

.aside-section a:hover {
    text-decoration: none;
    color: #d78849;
}

.aside-section ul {
    margin: 10px 0 10px 20px;
}

/*页脚超链接*/
footer section a {
    display: block;
    float: left;
    color: #FFF;
    text-decoration: none;
    width: 100px;
    text-align: center;
    line-height: 60px;
    font-size: 1.6em;
}

#copyright a {
    text-decoration: none;
    color: #000;
}

#copyright a:hover {
    text-decoration: none;
    color: #d78849;
}

/*异形专区*/

.alien {
    width: 620px;
    alignment: top;
}

.alien section {
    display: inline-block;
    width: 300px;
    top: 0;
}

.effect-1 img {
    vertical-align: middle;
    horiz-align: center;
    width: 290px;
    height: 315px;
}

.text-desc {
    position: absolute;
    left: 0;
    top: 0;
    width: 290px;
    height: auto;
    margin-bottom: 25px;
    padding: 10px 10px 10px 18px;
    opacity: 0;
    z-index: -1;
}

.effect-1 {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 10px;
    width: 315px;
    height: auto;
    display: inline-block;
    /*border: 1px solid;*/
    perspective: 800px;
}

.effect-1:hover .image-box {
    /*transform: rotateX(90deg);*/
    /*transform-origin: center bottom;*/
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s linear;
}

.effect-1:hover .text-desc {
    opacity: 1;
    transition: 0.3s;
}

.btn {
    display: inline-block;
    padding: 2px 10px;
    font-size: 14px;
    color: #fff;
    border: 1px solid darkgray;
    background-color: darkgray;
    text-decoration: none;
    transition: 0.4s;
}

.btn:hover {
    background-color: transparent;
    color: black;
    transition: 0.4s;
}

/*畅销图书*/
.record .rank:before {
    content: counter(listxh);
    background: black;
    padding: 2px 5px;
    color: white;
    margin-right: 5px;
    vertical-align: top;
}

.record {
    /*border: black 1px solid;*/
    /*margin-top: 5px;*/
}

.rank {
    counter-increment: listxh;
    display: block;
    width: 100%;
    vertical-align: bottom;
    overflow: hidden;
    white-space: nowrap;
    margin-top: 8px;
    border-bottom: #CCC dashed 1px;
}

.curr {
    position: relative;
    left: 20px;
}

.more {
    text-align: right;
    position: relative;
    top: -22.4px;
}

.record .curr li:before {
    content: counter(listx);
    color: gray;
    /*border: black 1px solid;*/
    /*border-radius: 3px;*/
    margin-right: 10px;
    margin-left: 5px;
    vertical-align: top;
    font-size: 16px;
    width: 22px;
    height: 22px;
}

.curr li {
    counter-increment: listx;
    display: block;
    width: 100%;
    vertical-align: bottom;
    overflow: hidden;
    white-space: nowrap;
    margin-top: 8px;
    border-bottom: #CCC dashed 1px;
}


.record li {
    /*text-overflow: ellipsis;*/
}

.record .p-img {
    display: inline-block;
}

.record .p-name {
    display: inline-block;
    vertical-align: top;
}

.record .curr .p-name strong {
    display: block;
    color: #FF0000;
    text-align: left;
    margin-top: 20px;
    font-size: 1.4em;
}

.record .curr .p-name del {
    font-size: 1.4em;
    font-weight: 900;
}

/*.record .curr {*/
/*    display: none;*/
/*}*/

.record a {
    color: #000000;
    text-decoration: none;
    font-size: 1.6em;
}

/*.record li:hover {*/
/*    text-shadow: 1px 4px 4px #000;*/
/*}*/

.rec {
    text-align: right;
    right: 0;
}

/*.record li:hover .curr{*/
/*    display: block;*/
/*    position: relative;*/
/*    left: 20px;*/

/*    !*height: 300px;*!*/
/*}*/

/*.record li:hover .more{*/
/*    display: block;*/
/*}*/

/*导航栏*/
nav ul li {
    display: inline-block;
}

nav ul a {
    display: inline-block;
    line-height: 50px;
    width: 100px;
    text-align: center;
    border-right: solid 1px white;
    color: white;
    text-decoration: none;
    font-size: 1.8em;
    transition: all 0.3s linear;
}

nav ul a:hover {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    /*color: black;*/
}

nav {
    width: 1000px;
}

#nav nav ul li {
    position: relative;
    border-radius: 0;
}

#nav nav ul ul li {
    background-color: black;
}

#nav nav ul ul li a {
    border-radius: 0;
    color: white;
    transition: background 0.3s linear;
}

#nav nav ul ul li a:hover {
    background-color: lightgray;
}

#nav nav ul ul {
    visibility: hidden;
    position: absolute;
    opacity: 0;
    top: 30px;
    transition: all 0.3s linear;
}

#nav nav ul li ul li ul li {
    visibility: hidden;
    position: relative;
    margin-left: 103px;
}

#nav nav ul li ul li ul li:first-child {
    visibility: hidden;
    position: absolute;
    margin-top: -49px;
    margin-left: 103px;
}

#nav nav ul li:hover ul {
    visibility: visible;
    opacity: 100;
    z-index: 100;
    top: 49px;
    /*-webkit-animation: slide-down 0.5s ease-in;*/
}

#nav nav ul li ul li:hover ul li {
    visibility: visible;
    z-index: 100;
}

@-webkit-keyframes slide-down {
    0% {
        transform: scale(1, 0);
    }
    25% {
        transform: scale(1, 1.2);
    }
    50% {
        transform: scale(1, 0.85);
    }
    75% {
        transform: scale(1, 1.05);
    }
    100% {
        transform: scale(1, 1);
    }
}

/*书籍分类页面category.html*/
.piclist ul {
    display: flex;
}

.piclist li {
    text-align: center;
    margin: 10px 5px;
    /*height: 30px;*/
}

.piclist li img {
    width: 192px;
    border-radius: 10px;
    transition: all 1s ease;
    border: 1px solid black;
    height: 100%;
}

.piclist li:nth-child(3n+1) {
    margin-left: 10px;
}

.piclist li:nth-child(3n+3) {
    margin-right: 10px;
}

.piclist li:hover img {
    transform: scale(1.1);
}

/*分页导航*/
#pagebar {
    text-align: right;
    margin-top: 10px;
    margin-right: 10px;
}

#pagebar a {
    font-size: 1.6em;
    text-decoration: none;
    background-color: black;
    display: inline-block;
    width: 25px;
    height: 25px;
    text-align: center;
    color: #FFFFFF;
    transition: all 0.5s ease;
    padding-top: 3px;
}

#pagebar a:hover {
    z-index: 100;
    opacity: 0.5;
    transform: scale(1.1);
}

#pagebar .arrow {
    width: 60px;
}


/*特刊降价页面*/
.specials {
    border-bottom: #CCC dashed 1px;
    border-top: #CCC dashed 1px;
    margin: 10px 0;
    display: flex;
    padding: 10px;
    transition: background-color 1s ease;
}

.specials a {
    display: block;
}

.specials img {
    width: 160px;
    height: 160px;
}

.specials div h3 {
    text-align: center;
}

.specials div strong {
    color: #FF0000;
}

.specials:hover {
    background-color: #c5805f;
}

.specials:hover div, .specials:hover strong {
    color: #FFFFFF;
}

/*联系我们页面contact.html*/
.contacts p {
    padding: 10px;
}

.contact-form {
    border: #7a5737 1px dashed;
    font-size: 1.4em;
    margin: 0 10px;
}

.form-subtitle {
    background: black;
    color: #FFF;
    padding: 2px 5px;
}

.contact {
    text-align: right;
    width: 100px;
}

.contact-input {
    width: 300px;
    border: #CCC 1px solid;
}

.form-row {
    padding: 2px 10px;
}

.form-row-button {
    padding: 5px;
    width: 100%;
}

.send {
    color: #FFF;
    height: 24px;
    width: 53px;
    text-align: center;
    background-color: black;
    border: 0;
}

/*关于我们页面about.html*/
#video p {
    margin: 10px 10px;
}

.video {
    text-align: center;
}

.video iframe {
    border: none;
    width: 600px;
    height: 400px;
}

/*详细内容页面*/
.boolname {
    margin: 10px;
    text-align: center;
}

.infobook {
    display: flex;
    padding: 10px;
    border: 1px solid black;
    border-radius: 5px;
    margin: 10px 0;
}

.infobook img {
    width: 300px;
    height: 300px;
    box-shadow: 3px 3px;
    border: solid 1px #cccccc;
}

.infobook {
    margin-left: 20px;
}

.infobook h3 {
    text-align: center;
    margin-bottom: 10px;
}

.infobook div {
    text-align: right;
}

.infobook li {
    font-size: 1.4em
}

.infobookc {
    border-radius: 5px;
    transition: all 1s ease;
    border: 1px solid black;
    padding: 10px;
}

/*分享工具栏*/
.title-bar p, .title-bar div {
    display: inline-block;
    vertical-align: top;
}

.title-bar p {
    padding-top: 3px;
    font-size: 1.6em;
}

.title-bar {
    background-color: #f3f3f3;
    text-align: right;
}

/*相关阅读*/
.context {
    margin: 10px 0;
}

.context p {
    font-size: 1em;
    background-color: #f3f3f3;
    line-height: 30px;
}

.context a {
    text-decoration: none;
    color: #000;
    background-color: #f3f3f3;
}

.context a:hover {
    text-decoration: none;
    color: #d78849;
}

.infobookc p {
    padding-bottom: 5px;
}

/*购物车页面favor.html*/
.favort {
    margin-top: 10px;
    margin-left: 5px;
}

.favor-table {
    font-size: 1.4em;
    width: 100%;
    border-collapse: collapse; /*合并边框*/
    border: 1px solid #eee8;
    margin: 10px 0;
}

.favor-table tr, .favor-table td {
    border: 1px solid #eee8; /*单元格边框*/
}

.favor-title, .favor-table {
    background-color: #eee8; /*第一行和最后一行背景色*/
    line-height: 25px;
}

.favor-table td h3 {
    font-size: 1em;
}

.favor-table img {
    width: 25px;
    height: 25px;
}

.td-right {
    text-align: right;
}

.favor-table a {
    display: inline-block;
    background-color: white;
    color: #FFFFFF;
    font-size: 1.1em;
    padding: 0 10px;
    text-decoration: none;
}

.td-center {
    text-align: center;
}

/*书店首页日期和时间设置*/
#displaydate {
    position: absolute;
    top: 130px;
    left: 790px;
    color: white;
    /*visibility: hidden;*/
}

#displaytime {
    position: absolute;
    top: 130px;
    left: 940px;
    color: white;
    /*visibility: hidden;*/
}

/*图片切换*/
#adv {
    position: relative;
    margin: 10px;
    border: 1px solid #c5a572;
    box-shadow: 5px 5px 5px #6f605a;
}

#adv dl, #adv dd {
    list-style: none;
}

#adv dt {
    position: absolute;
    bottom: 5px;
    right: 5px;
}

#adv dd {
    overflow: hidden;
    width: 600px;
    height: 230px;
}

#adv dl dt a {
    display: block;
    float: left;
    width: 17px;
    height: 17px;
    margin: 2px;
    border: black solid 1px;
    border-radius: 15px;
    background-color: #6f605a;
    color: white;
    text-decoration: none;
    text-align: center;
    padding: 0;
    font-size: 12px;
}

#adv dl dt a:hover {
    background-color: #c93;
}

/*试读页面*/
article .content {
    border: 1px solid black;
    box-sizing: border-box;
    padding: 5px;
}

aside {
    /*border: 1px solid black;*/
    box-sizing: border-box;
    float: right;
    /*background-color: white;*/
    /*filter: invert(100%);*/
}

h2 {
    color: black;
    text-align: center;
}

h3 {
    text-align: center;
}

.list, .bar {
    padding: 10px;
}

.list dl {
    cursor: pointer;
}

.bar a, .list dl dt {
    font-size: 1.5em
}

.list a, .bar a {
    text-decoration: none;
    color: #000;
}

.list a:hover, .bar a:hover {
    color: #f90;
}

.list dl dd {
    margin-left: 10px;
    display: none;
}

.right-footer a {
    font-size: 14px;
}










